package com.ice.base.result;

public enum  ResultCodeEnum {

    DO_SUCCESS(true,1, "操作成功"),
    DO_FAILED(false,0, "操作失败"),
    LOGIN_SUCCESS(true,1, "登录成功"),
    SIGN_SUCCESS(true,1, "注册成功"),
    REQUEST_PHONE_FAILED(false,0, "手机号已经被注册"),
    REQUEST_PHONE_NOTFOUND(false,0, "手机号尚未注册"),
    USER_NOTFOUND(false,0, "用户不存在"),//异常状态
    USER_EXISTS(false,0, "用户已存在"),//异常状态
    PHONE_EXIST(false,0, "手机号已经被注册"),//异常状态
    USER_CODE_FAILED(false,0, "获取验证码异常"),//异常状态
    USER_CODE_ERROR(false,0, "验证码错误"),//异常状态
    REQUEST_PASSWORD_FAILED(false,0, "密码错误"),//异常状态
    REQUEST_NOTECODE_CHECK_ERROR(false,0, "验证码错误"),//异常状态
    REQUEST_FIND_NOT_FOUND(false,0, "暂无数据"),//异常状态，没有数据
    REQUEST_BANNER_NOT_FOUND(false,0, "您已被禁言，不能发表评论"),//异常状态，没有数据
    REQUEST_OPENID_NOTFAILED(false,0, "openId异常，请重试"),
    REQUEST_ID_NOT_FOUND(false,0, "id不能为空"),//异常状态
    SELECT_NOT_FOUND(false,0, "没有查询到结果"),//异常状态，没有数据(false,0, "id不能为空"),//异常状态


    UNKNOWN_ERROR(false,0,"未知参数"),
    PARAM_ERROR(false,0,"参数错误"),
    UPLOAD_FILE_ERROR(false,0,"上传文件失败！")
    ;

    private Boolean success;
    private Integer code;
    private String message;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
